﻿<UserControl 
    x:Class="Dashboard.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:Liquid="clr-namespace:Liquid;assembly=Liquid.TreeView" 
    xmlns:more="clr-namespace:NokolaNavi;assembly=NokolaNavi" 
    xmlns:SandDock="clr-namespace:Divelements.SandDock;assembly=Divelements.SandDock" 
    xmlns:Dashboard="clr-namespace:Dashboard" 
    HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
    Loaded="UserControl_Loaded">
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        
        <!-- menu -->
        <Grid x:Name="Menu" Background="White" Grid.Row="0">
            <Image Source="images/bgcompact.jpg" Stretch="UniformToFill" Height="43" HorizontalAlignment="Stretch" VerticalAlignment="Top"/>
            <Rectangle VerticalAlignment="Top" HorizontalAlignment="Stretch" Fill="#4f000000" Height="43" />
            <Image VerticalAlignment="Top" HorizontalAlignment="Stretch" Height="14" Margin="0,43,0,0"  Stretch="None"
            Source="images/bgshadow.jpg" />

            <TextBlock x:Name="textInfo" IsHitTestVisible="False" HorizontalAlignment="Center" 
                   VerticalAlignment="Top" Margin="0,12,540,0" FontSize="14" 
                   Foreground="#FFffffff" />

            <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="0,0,0,0" Background="Transparent" >
                <more:NaviButton Title="Home" ImageSource="images/home.png" 
                                 TransitionColor="#7fD8935F" Margin="2,0,0,0" 
                                 MouseMove="ButtonSeven_MouseMove" 
                                 NavigateUri="Home.aspx"/>
                <more:NaviButton Title="Workflow" ImageSource="images/games.png" 
                                 TransitionColor="#7f1E5FA7" Margin="2,0,0,0" 
                                 MouseMove="ButtonSeven_MouseMove"
                                 NavigateUri="Workflow.aspx"/>
                <more:NaviButton Title="Report" 
                                 ImageSource="images/samples.png" 
                                 TransitionColor="#7f47D4F7" Margin="2,0,0,0" MouseMove="ButtonSeven_MouseMove"
                                 NavigateUri="Report.aspx"/>
                <more:NaviButton Title="Analysis" ImageSource="images/sourcecode.png" 
                                 TransitionColor="#7fDBE0E3" Margin="2,0,0,0" 
                                 MouseMove="ButtonSeven_MouseMove"
                                 NavigateUri="Analysis.aspx"/>
                <more:NaviButton Title="Rules" ImageSource="images/tutorials.png" 
                                 TransitionColor="#7f66FF5E" Margin="2,0,0,0" 
                                 MouseMove="ButtonSeven_MouseMove"
                                 NavigateUri="Rules.aspx"/>
                <more:NaviButton Title="Blog" ImageSource="images/blog.png" 
                                 TransitionColor="#7fF7D15C" Margin="2,0,0,0" 
                                 MouseMove="ButtonSeven_MouseMove"
                                 NavigateUri=""/>
                <more:NaviButton Title="Links" ImageSource="images/links.png" 
                                 TransitionColor="#7f3E8DDD" Margin="2,0,0,0" 
                                 MouseMove="ButtonSeven_MouseMove"
                                 NavigateUri="https://portal.discoverylogic.com"
                                 OpenInNewWindow="True"/>
            </StackPanel>
            <TextBlock x:Name="textTopTitle" Text="Analytics@DL" Foreground="White" Margin="4,12,0,0" IsHitTestVisible="False" FontSize="14" />
        </Grid>

        <!-- workspace -->
        <SandDock:DockSite Grid.Row="1" x:Name="DockSite">
            <SandDock:DockedSplitContainer Dock="Left" ContentSize="150">
                <SandDock:WindowGroup IsPinned="True">
                    <SandDock:ToolWindow Title="My data" Name="ToolboxNaviPane">
                        <Dashboard:MyDataTree x:Name="treeData"/>
                    </SandDock:ToolWindow>
                </SandDock:WindowGroup>
            </SandDock:DockedSplitContainer>

            <SandDock:DocumentContainer Margin="2">
                <SandDock:WindowGroup x:Name="DocWindowGroup">
                    <SandDock:DocumentWindow
                        x:Name="TabDoc"
                        Title="Clustering result">
                        <Dashboard:ClusterResultView x:Name="clusterResultView"/>
                    </SandDock:DocumentWindow>
                </SandDock:WindowGroup>
            </SandDock:DocumentContainer>
        </SandDock:DockSite>

        
    </Grid>
</UserControl>
